package com.yipao.db.dao.group;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoGrouponRules;
import com.yipao.db.domain.YipaoGrouponRulesExample;

public interface GrouponRulesMapper {

    long countByExample(YipaoGrouponRulesExample example);


    int deleteByExample(YipaoGrouponRulesExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoGrouponRules record);


    int insertSelective(YipaoGrouponRules record);


    YipaoGrouponRules selectOneByExample(YipaoGrouponRulesExample example);


    YipaoGrouponRules selectOneByExampleSelective(@Param("example") YipaoGrouponRulesExample example, @Param("selective") YipaoGrouponRules.Column ... selective);


    List<YipaoGrouponRules> selectByExampleSelective(@Param("example") YipaoGrouponRulesExample example, @Param("selective") YipaoGrouponRules.Column ... selective);


    List<YipaoGrouponRules> selectByExample(YipaoGrouponRulesExample example);


    YipaoGrouponRules selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoGrouponRules.Column ... selective);


    YipaoGrouponRules selectByPrimaryKey(Integer id);


    YipaoGrouponRules selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoGrouponRules record, @Param("example") YipaoGrouponRulesExample example);


    int updateByExample(@Param("record") YipaoGrouponRules record, @Param("example") YipaoGrouponRulesExample example);


    int updateByPrimaryKeySelective(YipaoGrouponRules record);


    int updateByPrimaryKey(YipaoGrouponRules record);


    int logicalDeleteByExample(@Param("example") YipaoGrouponRulesExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
